import java.io.*;

public class Test extends Object{
    public static void main(String[] args) throws IOException {
        File file=new File("test.txt");
        System.out.println(file);
//        FileInputStream fileInputStream=new FileInputStream(file);
        String str="world";
        FileOutputStream fileOutputStream=new FileOutputStream(file);
        int tmp=0;
        System.out.println(file.canWrite());

//        while((tmp=fileOutputStream.write()!=-1)){
//
//        }

    }
}
